home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 4 / The Arsenal Files 4 (Arsenal Computer).ISO / casm / au116-as.exe / UTIL / VERPRINT.CPP < prev   
C/C++ Source or Header  |  1994-06-05  |  629b  |  26 lines

  1. #include "..\au.hpp"
  2.  
  3. /*░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░*/
  4. void version_print(AU *au, int version, int len, BOOLEAN left)
  5. {
  6.     BYTE color;
  7.  
  8.     if (archive_is_old(version))
  9.         color = 11;                   /* old versions in cyan */
  10.     else
  11.     {
  12.         switch (version)
  13.         {
  14.             case 0: case 47: case 48: case 65: case 66: case 60:
  15.                 color = 14; break;      /* Unknown in yellow */
  16.             default:
  17.                 color = 10; break;      /* new in green */
  18.         }
  19.     }
  20.     if (left)
  21.         au_printf_c(au, color, "%-*.*s", len, len, versions[version]);
  22.     else
  23.         au_printf_c(au, color, "%*.*s", len, len, versions[version]);
  24. }
  25.  
  26.